<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj=new Object();
        var obj2={};//空对象
        console.log(typeof(obj));
        // 键值对：key value
        var obj3={
            "name":"小琪",//属性
            "sex":"仙女",
            "eat":function(){
                console.log("正在吃东西");
            }
        }
        console.log(obj3.name);
        obj3.eat();//调用对象
        obj3.study=function(){
            console.log("正在学习");
        }
        obj3.study();
    </script>
</head>
<body>
    
</body>
</html>